import * as React from "react" import { type SearchParams } from "@/types/table" import { getValidFilters } from "@/lib/data-table" import { Skeleton } from "@/components/ui/skeleton" import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton" import { Shell } from "@/components/shell" import { searchParamsProjectsCache } from "@/lib/projects/validation" import { InformationButton } from "@/components/information/information-button" import { getProjectListsForCover } from "@/lib/cover/service" import { ProjectsTableForCover } from "@/lib/cover/table/projects-table" import { useTranslation } from "@/i18n" interface IndexPageProps { params: Promise<{ lng: string }> searchParams: Promise } export default async function IndexPage(props: IndexPageProps) { const { lng } = await props.params const { t } = await useTranslation(lng, 'menu') const searchParams = await props.searchParams const search = searchParamsProjectsCache.parse(searchParams) const validFilters = getValidFilters(search.filters) const promises = Promise.all([ getProjectListsForCover({ ...search, filters: validFilters, }), ]) return (

{t('menu.engineering_management.cover')}

{/*

S-EDP로부터 수신하는 프로젝트 리스트입니다. 향후 MDG로 전환됩니다.{" "} 버튼 을 통해 담당자 연락처, 입찰 이력, 계약 이력, 패키지 내용 등을 확인 할 수 있습니다.

*/}
}> {/* */} } >
) }